package Thread;

public class TrainTest {
    public static void main(String[] args) {
        Train train=new Train();
        Thread line1=new Thread(train,"线路一");
        Thread line2=new Thread(train,"线路二");
        Thread line3=new Thread(train,"线路三");
        Thread line4=new Thread(train,"线路四");
        Thread line5=new Thread(train,"线路五");
        Thread line6=new Thread(train,"线路六");
        line1.start();
        line2.start();
        line3.start();
        line4.start();
        line5.start();
        line6.start();
    }
}
